﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddNewCard.ascx.vb" Inherits="Controls_AddNewCard" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
        <%--        <asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="modalPopup">--%>
<link href="../Content/BaloonPopup.css" rel="stylesheet" />
        <asp:Panel ID="pnlNewCard" runat="server" >
<%--            <asp:Button ID="btnCancelInvitationFail" runat="server" Style="float: right;
            background-color: #FF0000;" Text="X" />--%>
            <h2>Add New Card</h2>
            <table>
                <tr>
                    <td class="style2">
                        <asp:Label ID="lblCurrency" runat="server" Text="Currency"></asp:Label>
                    </td>
                    <td class="auto-style3">
                        <asp:DropDownList ID="ddCurrency" runat="server" DataSourceID="ODSCurrency" DataTextField="Name" DataValueField="Id">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="ODSCurrency" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_lkp_CurrencySelectTableAdapter" UpdateMethod="Update">
                            <DeleteParameters>
                                <asp:Parameter Name="Id" Type="Int32" />
                            </DeleteParameters>
                            <InsertParameters>
                                <asp:Parameter Name="Name" Type="String" />
                                <asp:Parameter Name="Active" Type="Boolean" />
                            </InsertParameters>
                            <SelectParameters>
                                <asp:Parameter Name="Id" Type="Int32" />
                            </SelectParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="Id" Type="Int32" />
                                <asp:Parameter Name="Name" Type="String" />
                                <asp:Parameter Name="Active" Type="Boolean" />
                            </UpdateParameters>
                        </asp:ObjectDataSource>
                    </td>
                </tr>
                <tr>
                    <td>CardNumber </td>
                    <td colspan="2">
                        <asp:TextBox ID="txtNewCardNumber" runat="server"></asp:TextBox>
                        <asp:MaskedEditExtender ID="txtNewCardNumber_MaskedEditExtender" runat="server" AcceptNegative="Left" ErrorTooltipEnabled="True" InputDirection="LeftToRight" Mask="9999999999999999" MaskType="Number" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError" TargetControlID="txtNewCardNumber"></asp:MaskedEditExtender>
                    </td>
                </tr>
                <tr>
                    <td>Card Type </td>
                    <td colspan="2">
                        <asp:DropDownList ID="cboCCNewType" runat="server" DataSourceID="ObjectDataSource2" DataTextField="Name" DataValueField="Id">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_lkp_PaymentMethodSelectTableAdapter" UpdateMethod="Update">
                            <DeleteParameters>
                                <asp:Parameter Name="Id" Type="Int32" />
                            </DeleteParameters>
                            <InsertParameters>
                                <asp:Parameter Name="Name" Type="String" />
                                <asp:Parameter Name="Active" Type="Boolean" />
                            </InsertParameters>
                            <SelectParameters>
                                <asp:Parameter Name="Id" Type="Int32" />
                            </SelectParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="Id" Type="Int32" />
                                <asp:Parameter Name="Name" Type="String" />
                                <asp:Parameter Name="Active" Type="Boolean" />
                            </UpdateParameters>
                        </asp:ObjectDataSource>
                    </td>
                </tr>
                <tr>
                    <td>Valid From:</td>
                    <td colspan="2">mm
                        <asp:DropDownList ID="cboCardValidNewMM" runat="server">
                            <asp:ListItem Value="1">1</asp:ListItem>
                            <asp:ListItem Value="2">2</asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem Value="4"></asp:ListItem>
                            <asp:ListItem Value="5">5</asp:ListItem>
                            <asp:ListItem Value="6">6</asp:ListItem>
                            <asp:ListItem Value="7">7</asp:ListItem>
                            <asp:ListItem Value="8">8</asp:ListItem>
                            <asp:ListItem Value="09">9</asp:ListItem>
                            <asp:ListItem Value="10">10</asp:ListItem>
                            <asp:ListItem Value="11">11</asp:ListItem>
                            <asp:ListItem Value="12">12</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;yy
                        <asp:DropDownList ID="cboCardValidNewYY" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>Expire Date: </td>
                    <td colspan="2">mm
                        <asp:DropDownList ID="cboCardExpiryNewMM" runat="server">
                            <asp:ListItem Value="1">1</asp:ListItem>
                            <asp:ListItem Value="2">2</asp:ListItem>
                            <asp:ListItem Value="3"></asp:ListItem>
                            <asp:ListItem Value="4"></asp:ListItem>
                            <asp:ListItem Value="5">5</asp:ListItem>
                            <asp:ListItem Value="6">6</asp:ListItem>
                            <asp:ListItem Value="7">7</asp:ListItem>
                            <asp:ListItem Value="8">8</asp:ListItem>
                            <asp:ListItem Value="09">9</asp:ListItem>
                            <asp:ListItem Value="10">10</asp:ListItem>
                            <asp:ListItem Value="11">11</asp:ListItem>
                            <asp:ListItem Value="12">12</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;yy
                        <asp:DropDownList ID="cboCardExpiryNewYY" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>CVV</td>
                    <td colspan="2">
                        <asp:TextBox ID="txtNewCVV" runat="server"></asp:TextBox>
                        <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtNewCVV"
                                        Mask="9999"
                                        MessageValidatorTip="true"
                                        OnFocusCssClass="MaskedEditFocus"
                                        OnInvalidCssClass="MaskedEditError"
                                        MaskType="Number"
                                        InputDirection="LeftToRight"
                                        AcceptNegative="Left"
                                        ErrorTooltipEnabled="True"></asp:MaskedEditExtender>
                        <asp:HyperLink ID="HyperLink7" runat="server">Whats this?</asp:HyperLink>
                        <asp:Panel ID="Panel4" runat="server" Direction="NotSet" style="text-align:center">
                                        <img src="../../../Images/cvv.jpg" />
                        </asp:Panel>
                        <asp:BalloonPopupExtender ID="PopupControlExtender2" runat="server" BalloonPopupControlID="Panel4"  BalloonSize="Large"  BalloonStyle="Rectangle" DisplayOnClick="true" DisplayOnFocus="true" DisplayOnMouseOver="true" Position="TopRight" ScrollBars="None" TargetControlID="HyperLink7" UseShadow="true"></asp:BalloonPopupExtender>
<%--                        <asp:BalloonPopupExtender ID="BalloonPopupExtender1"
        TargetControlID="HyperLink7"
        BalloonPopupControlID="Panel4"
        BalloonStyle="Custom"
        UseShadow="true"
        runat="server"
        CustomClassName="custom"
        CustomCssUrl="CustomStyle.css" BalloonSize="Large"
        />--%>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:Button ID="btnSave" runat="server" Text="Save" />
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                                <br />
                                <asp:Label ID="MsgEditLbl" runat="server" Text=""></asp:Label>
                                <asp:Label ID="lblId" runat="server" Text="" Visible="false"></asp:Label>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td colspan="2">
                        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td colspan="2">&nbsp;</td>
                </tr>
            </table>
    </asp:Panel>
<%--    <asp:Button ID="btnNewCard" runat="server" Style="display: none;" Text="Button" />
    <asp:ModalPopupExtender ID="NewCardModalPopupExtender" runat="server" BackgroundCssClass="modalBackground" DropShadow="true" DynamicServicePath="" Enabled="True" PopupControlID="pnlNewCard" TargetControlID="btnNewCard">
    </asp:ModalPopupExtender>--%>
